-- GENERATED SPELL FOR [Muckshell Scrabbler] --


function spell0_4404(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(8005,pUnit)
pUnit:RegisterEvent('Sorts_4404', 3000, 1)
end

function spell1_4404(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4404', 3000, 1)
end

function Sorts_4404(pUnit, Event)
local choix_sorts_4404 = math.random(0, 1)
if choix_sorts_4404 == 0 then
pUnit:RegisterEvent('spell0_4404', 1, 1)
end
if choix_sorts_4404 == 1 then
pUnit:RegisterEvent('spell1_4404', 1, 1)
end
end

function mob4404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4404', math.random(1500, 3000), 1)
end

function mob4404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4404, 1, 'mob4404_Action')
RegisterUnitEvent(4404, 2, 'mob4404_Leave')
RegisterUnitEvent(4404, 3, 'mob4404_Kill')
RegisterUnitEvent(4404, 4, 'mob4404_Die')
